package de.mmis.utilities.genericPublisher;

import de.mmis.core.base.event.Observable;
import de.mmis.core.base.infrastructure.PublishedDeviceDescription;

public class PubSubPublishHandle extends PublishHandle {

	final private Observable<?> observable;

	public PubSubPublishHandle(String id, PublishedDeviceDescription descr,
			Observable<?> observable) {
		super(id, descr);
		this.observable = observable;
	}

	@Override
	public String toString() {
		return "PubSub " + observable;
	}

	@Override
	protected String prettyStringImpl() {
		return "in Publish / Subscribe\n";
	}

	public Observable<?> getObservable() {
		return observable;
	}

}
